package graph;

public class Node implements Comparable<Node>{
	int id;
	public Node(int id) {
		this.id = id;
	}
	@Override
	public String toString() {
		return "(" + id + ")";
	}
	@Override
	public boolean equals(Object o) {
		return this == o;
	}
	@Override
	public int hashCode() {
		return id;
	}
	@Override
	public int compareTo(Node o) {
		return o.id - id;
	}
}
